import { v4 as uuidv4 } from 'uuid'
export const getToken = () => {
  let token = localStorage.getItem('UUIDTOKEN')
  if (!token) {
    // 生成临时身份
    token = uuidv4()
    // 储存
    localStorage.setItem('UUIDTOKEN', token)
  }
  return token
}
